﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ExcelFileQueryTool
{
    public partial class frmMessageDetail : Form
    {
        public frmMessageDetail(string msg, string detail)
        {
            InitializeComponent();

            lblMsg.Text = msg;
            txtDetail.Text = detail;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ResizeAndRelocateControls()
        {
            var dy = lblMsg.Height - 12;

            txtDetail.Location.Offset(0, dy);
            btnClose.Location.Offset(0, dy);

            this.Height += dy;
        }
    }
}
